<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->

<title>attroff</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_002_001_279">&nbsp;</a>NAME</h4><blockquote>
attroff, attron, attrset,
wattroff, wattron, wattrset
- restricted window attribute control functions
</blockquote><h4><a name = "tag_002_001_280">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

#include &lt;<a href="curses.h.html">curses.h</a>&gt;

int attroff(int <i>attrs</i>);

int attron(int <i>attrs</i>);

int attrset(int <i>attrs</i>);

int wattroff(WINDOW *<i>win</i>, int <i>attrs</i>);

int wattron(WINDOW *<i>win</i>, int <i>attrs</i>);

int wattrset(WINDOW *<i>win</i>, int <i>attrs</i>);
</code>
</pre>
</blockquote><h4><a name = "tag_002_001_281">&nbsp;</a>DESCRIPTION</h4><blockquote>
These functions manipulate the window attributes of the current or
specified window.
<p>
The
<i>attroff()</i>
and
<i>wattroff()</i>
functions turn off <i>attrs</i> in the current or specified window without
affecting any others.
<p>
The
<i>attron()</i>
and
<i>wattron()</i>
functions turn on <i>attrs</i> in the current or specified window without
affecting any others.
<p>
The
<i>attrset()</i>
and
<i>wattrset()</i>
functions set the background attributes of the current or specified window to
<i>attrs</i>.
<p>
It is unspecified whether these functions can be used to manipulate attributes
other than A_BLINK, A_BOLD, A_DIM, A_REVERSE, A_STANDOUT and A_UNDERLINE.
</blockquote><h4><a name = "tag_002_001_282">&nbsp;</a>RETURN VALUE</h4><blockquote>
These functions always return either OK or 1.
</blockquote><h4><a name = "tag_002_001_283">&nbsp;</a>ERRORS</h4><blockquote>
No errors are defined.
</blockquote><h4><a name = "tag_002_001_284">&nbsp;</a>SEE ALSO</h4><blockquote>
<i><a href="attr_get.html">attr_get()</a></i>,
<i><a href="standend.html">standend()</a></i>,
<i><a href="curses.h.html">&lt;curses.h&gt;</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
